﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using MySkiPatrolEntity;
using MySkiPatrolBLL;

namespace MySkiPatrolWS
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Membership" in code, svc and config file together.
    public class Membership : IMembership
    {
        MembershipBLO patrolBLO = new MembershipBLO();

        public WebAccess Login(WebAccess data)
        {
            data = patrolBLO.Login(data);
            data.DataTransaction.PatrolPrefix = null;
            return data;
        }

        public Member Logout(Member data)
        {
            return patrolBLO.Logout(data); 
        }

        public Member GetMember(Member data)
        {
            return patrolBLO.GetMember(data);
        }
    }
}
